package com.zuikaku.nettychat.vo;

import java.util.Date;

/**
 * 聊天视图模型
 */
public class ChatVO {
    private int chatId;
    private int userId;//对方用户id
    private String nick;
    private String avatar;
    private String lastMsg;
    private Date updateTime;
    private String historyMsg;
    private String type;

    public int getChatId() {
        return chatId;
    }

    public void setChatId(int chatId) {
        this.chatId = chatId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getLastMsg() {
        return lastMsg;
    }

    public void setLastMsg(String lastMsg) {
        this.lastMsg = lastMsg;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getHistoryMsg() {
        return historyMsg;
    }

    public void setHistoryMsg(String historyMsg) {
        this.historyMsg = historyMsg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public ChatVO(int chatId, int userId, String nick, String avatar, String lastMsg, Date updateTime, String historyMsg, String type) {
        this.chatId = chatId;
        this.userId = userId;
        this.nick = nick;
        this.avatar = avatar;
        this.lastMsg = lastMsg;
        this.updateTime = updateTime;
        this.historyMsg = historyMsg;
        this.type = type;
    }

    public ChatVO() {
    }
}
